Checks for illegal token text.